Fix some memory leak bugs.
Divide inputs into pieces.
Use utils.cpp to calculate time.
Realize para with FF & boost::shared_mutex.
Count total elapsed time.
Merge pull request #7 from sherryshare/master

Fix some memory leak bugs.