Optimizations to 2D tiled simplex and 4D simplex noise