Creating Array List and Sorting it in Java