Working heap implementation.  Sample-increment is a little ugly and should be cleaned up.  Looks like it's quicker than (any) bstreap.