To renew its submarine fleet, Canada is cooperating with Germany and Norway on a deal worth billions.