starting implementing join order algorithm