Adds new layer and connects its first input to the first output of previously added layer
id = net.addLayerToPrev(name, layerType, params)