Goal-Space Planning With Subgoal Models