Crude (But complete) implementation of Euler path