Implemented multi-type joins.
Wrote a basic unit test for a 3-ST join.
TODO's document additional unit tests that would be nice to have.