isEqual return value changed to bool, inc parameter changed to ref, codes regulated.
stack deleted, test codes added, address confusion fixed.