Airlines use a complex algorithm of factors to determine who gets bumped when flights are oversold.