new sorted tree method of pairing

not ready for merge yet. 

cc @nateberkopec this takes care of no duplicate pairings with a sorted tree algorithm :P needs to be debugged/tested but take a look