write Hand.getBestCardsByRank() method