Fixed critical bug in ISPC Partition

Also improved warnings and improved performance of ISPC SplitEqually function. Due to this change, the performance is now same as the non-ISPC(maybe slightly better)