almsot done hw 4 algs