optimized+improved Set, Linear, Exponential
optimizations done (for now)