Added a function to write latex to produce a tree for inputted string that branches on the connective, OR or AND, that has the widest scope