sparseAutoEncoder: slightly better code for cost

sparseAutoEncoder + minFunc: adjustments to reduce warning outputs
handwritten labels loading funcs
handwritten weights jpg