adding numpy version of the matlab ufldl files