A Treatise on Plane and Spherical Trigonometry