Ranking module for poker hands