isEqual method added
ajacent verification method and join method added