added Frequent Value Pair solution