add significance optimization script with toy example