Latentsvm caskade

reopen PR #3 

WIP
do not use the C header in the external interface