change the interface of the code. Use .ini file for configuration.
This code is highly optimized. But I still think there is some space for further optimization.

Signed-off-by: ezheng <ezheng@cs.unc.edu>