Batch Matrix-form Equations and Implementation of Multilayer Perceptrons