recast the variable of vector from int to double inside the norm function
first version of Histogram of Oriented Gradients