Fix assertions for sorted array. Add display function
Added selection sort