Add function to get rank of a given list of hands