Add build file for Sparse to repo.

Dumb.
Add thread.hh

Just contains what is basically an async-friendly version of std::async
since std::future's destructor will block, resulting in something that
isn't really async and therefore useless.