Submarines have quietly become some of the most powerful weapons in modern naval warfare.