A Systematic Approach to Well Surveying Calculations