Add lodash javascript library for upcoming refactoring
Refactor pair recognition functionality
Recognize triples
Recognizes two pairs