add LOOxval

I have added files for leave one out crosss validation splitting and an example which seems to work on my machine with no leaks.I hope this is helpfull.