Added arraySort. A subroutine used for sorting arrays of arrays.