Added variant for gperftools profiler
Some optimizations on intersection calculation
Merge pull request #28 from petersohn/master

Profiling + optimization