Added timing to the algorithm and another child class for PixelDiff