Policy Continuation with Hindsight Inverse Dynamics