Fixed a bug in post order traverse algorithm