The surveying instrument used for measuring horizontal and vertical angles is called