Java Implementation of SQL Join. Only for Natural Join and Cross Join