Optimal Path Planning For Detection And Classification Of Underwater Targets Using Sonar