* remove shape parameter in accum
* replace insert with concatenate in accum for faster computation