looped all traveral methods to display numbers in order traversed