fast join implementation