update README
commit code.cpp about the algorithm