Program to determine the rank of a hand in poker