missed paren bug in is_sorted for selection sort