Implemented finding a eulerian tour for the given input