*added compare class
*added edge class

added match method to compare two inputs