modify updateD in syntax, modfiy estimateD to sum(dataCube(i,:))