Alternate recursive equals implementation.