Returns the index of the maximum element in the given FloatArray. TODO: Should be replaced with Multik in future.