Update TwoLayerDeriv.m