Cpp extra samples

Pulling in a few C++ examples from https://github.com/github/linguist/pulls/pull/710 and expanding on Objective C heuristic tests.