Updated readme and algorithm