finished algo hw3