Fixed type in array.c/.h sort algorithm