Algorithm to calculate optimal route for walking in the shade