Improve Euler path adjacent matrix main.cpp