Add new rules : UseMinOrMaxRule and UseSwapRule.
Use functions from ASTUtil.h and move some functions into ASTUtil.h
format code.