Add in-memory flatMap and natural-join implementation