adding tests and trying to get findMaximumPairs function working properly