Changed the basis vector mechanism. Using basis vectors other than labeled training points now possible. Fixed some bugs too.