Turning on double precision
added hierarchical grid search