update A[k], D[4] and D[k], k>4; introduce new format for algorithms