Started implementing the JoinOperatorBase.

Implemented JoinOperatorBase and test cases.