EXPLOITING FLOWS FOR ORIENTEERING AND PLANNING PROBLEMS