Extended array class with four sort algorithms