implemented a method to find the naked pairs