fix bugs in SvmLinear
add label lookup table
minor changes to tests