My programming assignment in algorithm course