working on passing functional parameters
dss
InOrder and preOrder refactor