Added demo for comparing algorithms