fixing join algorithm
nested loop and sorted merge algo test passed.