Most efficient way to forward-fill NaN values in numpy array,"arr[mask] = arr[np.nonzero(mask)[0], idx[mask]]"