Add functions to work with array of NNLayers