Cleaned up the code. Added a script for splitmerge benchmark.