rastrigin implemented