Added predicates is_empty/1, peek/3, peek_key/2, peek_value/2, det_peek/3, merge/3.  Added functions det_peek_key/1, det_peek_value/1.  Ensured all code fits in 79 columns.  Current version of code reflects discussions on mercury-reviews mailing list.