Added AlternativesLogic that choose number of alternatives for each query term based on the query size