Principles of relative and absolute dating