Update main.cpp

turn insert() function into recursive model with node stack storage