updated MatrixSorter and PokerHands