JoinOptimizer

first bit of ex4 done