Deep Layer-wise Networks Have Closed-Form Weights