Implemented segmenter algo, changed to ArrayList

Implemented a segmenter foreach loop that generates an
ArrayList<float[]> (ArrayList of arrays of floats).

It should be noted the efficiency of this foreach can be improved if we
modify the parameters of Utilities.toFloat to allow both float[] and
float.