Add ability to easily profile the sync functions.
Fixed some small bugs.
Profiling yielded a 50% improvement for table() and 30% for delta().
These functions are still not FAST, but much better.