Add fprof-based profiler
Abstract away set membership test
More memory-efficient duplicate checks