Algorithms Lab completed as best I could.