added fast array comparison for isEqual method