Implemented JoinOperatorBase and test cases

Implemented JoinOperatorBase and test cases.