Fix issue 1331 by adding a ShortArray class

I just created the ShortArray class by copying the FloatArray class and replacing the float occurrences.