Introduction to theory of errors