Converted to RubyTree format and eliminating unnecessary lefts and rights for binary ops.