Upgrade refinement criteria

This branch provides some automatic refinement filters.
Most of user-defined refinement searching routines were replaced by automatic criteria controlled by problem-defined parameters.