Running out of memory with mathjs, moving to numeric