Latentsvm caskade

reopen PR #3 

WIP