Adding the flavor of Binary-0-2 tree generation that Karthik wanted
Adding stuff to make sure that Binary-0-2 computes properly