Cosine interpolation in Perlin noise done. Refactoring next.

Signed-off-by: Kolijn World <kolijn.wolfaardt@gmail.com>