add dump method to matcaffe to dump middle level features.