changed bit order of nonlinear layer, now bit 0 lsb