Simplex noise generation for torch