Hansel, Gretel and the slime mould-how an external spatial memory aids navigation in complex environments