The code writed when self-learning the course algorithm from Princeton University