Fixed error in simplex noise algorithm