latentsvm caskade

reworked PR #3