Added Gradient Calculation

When no value is given, it calculate by default with
GradHighLo of 10.

Signed-off-by: tanji <nicholastanjerome@gmail.com>