decodeMax

fun decodeMax(b: ByteArray, dimension: Int): Int

decodes the max value (for the defined dimension) from the encoded input byte array