The submarine reshaped naval engagements thanks to its stealthy profile and ability to spring attacks on unsuspecting ships.