Problem statement and uses, Branch and bound algorithm, Sequential forward and backward selection