Pattern vectors stuff mostly implemented. Now only need classification of these using SVM, with appropriate testing and I should be pretty much done.