Implemented all the joins with sorted merge

ALL THE JOINS

also beefed up the tests to match