Make stb_perlin self checking and fix some bugs, including array out-of-bounds
access. Adjusted SCALE_FACTOR to a reasonable timeframe.

    * src/stb_perlin/stb_perlin.c: Fixed array access bug and made benchmark
        self-checking.