first pass at bottom up glossing
changed bs search