Trinary tree insertion and deletion basic version