add more specs from rb-libsvm and implement the interfaces