Habits of Mind: Reusing Action Sequences for Efficient Planning