completed 1.2 DoGDetector.m