Vectorized Back propagation