updated PokerHands and MatrixSorter