Prototype of algorithm for searching Eulerian cycle