add code coverage test.
use lcov & gcov to generate coverage report
use genhtml to generate html pages
on ubuntu: sudo apt-get install lcov will install
these two cmd lines.
remove trailing white spaces
Merge pull request #484 from licaiguo/add-gcov

Add gcov