Search, navigation and foraging: an optimal decision-making perspective