How long did it take to built the submarines?