The Cnoidal Theory Of Water Waves