add libsvm compilation options (-Wall -Wconversion -O3 -fPIC)
improve memory management using delete
fix bug descibe on issue#1 and refocator code