assigment 3 completed

finish all requirments and extra credits.
improve the speed when pan and pinch