Some my realization of algorithms on javascript.