M class submarine