improvements to profiing code
performance tweaks for sine, rsquare, blobs
improved time management
profiling improvements
fix off by one error