auction algorithm complete