a php class based on php's libSVM,expanded many useful functions.