Bad implementation of sparse grid added