Added Canny edge detector. Fixed some bugs in assignment 9