improved efficiency of detect_straight_flush algorithm