Work in progress. Support Vector Machine in Typescript