implemented inOrder method
fixed inOrder method
comments added