Integral images to speed up detector

And skeleton for learning