how to sort a deck of cards java