Implement leave-one-out cross validation