Implemented sorted merge as an option to join