added matrixLayer and neuronLayer