Fixed the to_s function
function to print tree - added