Recovery of the List of W matrices from unlist(W)
reshapeW(vecw, nn)
vecw
= unlist(W)
nn
# of layers
W List of Weight matrices
W