Removed dependence on STL set, replaced with a hash table (sort of, uses resizeable lock-free buffers instead of linked lists for the columns).  Fixed an obvious problem with using malloc and free without mutex protection.