In this version we have corrected some bugs that had to do with the memory. There is also another bug that has to be corrected because the main function that makes the partitioning returns with error. The problem does not have to do with the memory or the sparse array but with something different. There is a chance that the mistake is in the options.