Non-Euclidean Geometry: A Critical and Historical Study of its Development