added sortArray.h