vertex equality method

added an equality method for vertices