Starting on merge tree code