sorts.java hw