Integral Image for nd