added eulerian tour related code