Working on implementing algorithms for comparison