Added method to find key value pair in map