Sorting List In Java Using Exponents