Implemented the stochastic subgradient method, tested with the part classifier. Results seems to be as good as with l-bfgs. Need to see how it performs with deformable parts.