code for algorithm course