Removed THRUST_ASSSERT_EQUAL, added wrappers around malloc() and realloc() to handle OOM, added TBitset.