Implemented a utility function to add zero rows and columns to a matrix. Used in addNeurons function to update the weightMatrix.