Printing tree (array) in straight order