First implementation - Algorithm link sorts