A library of Matlab routines for deeplearning