ACA Algorithm works