My hw and classwork for algorithsm