optimized gradient calculation and box location
optimized gradient calculation and box location

use sum function and list representation of image data to speed up the calculations

saeimn/ESReader,saeimn/ESReader