Optimal camera trajectory for video surveillance systems