Removed dict for maintaining strategy singleton instances.
Added test.
jit annotations for performance optimization.