made changes to sparse grid local adaptivity. It now seems to be working. I need to make similar changes to dimensiona adaptive sparse grid to make it cleaner