finish project 3: add join optimizer for SimpleDB