simulate_data function

Simulate data for functional clustering