algorithm homework 5574453