Implementing Join Enumeration step of LQDAG generation in transformation based query optimizers