An implementation of the Eulerian circuit using Hierholzer's algorithm