codes for the algo course