Optimal Search for Moving Targets