performance improvements via vectorization of hessian_classify. much better :)