added code to run leave-1-out x validation