Added util methods to ArrayUtils and finished CoordinateEncoderTest