Changed to better thing

hopefully should have better performance when dealing with sparse large arrays.  Need to update multidice now.