UPDATED POKERHANDS AND MATRIX SORTER