Remove trailing whitespace in .c , .cpp and .h files

I removed some trailing whitespaces with the following shell commands.

```bash
find . -name "*.c" | xargs egrep -l " +$"
find . -name "*.cpp" | xargs egrep -l " +$"
find . -name "*.h" | xargs egrep -l " +$"
```