Tried the algorithm with the modified region splitting method