finished algtop pset4