homework for Computer Organization and Design