Submission for Algorithm Coursework Task