add functioning BigramIndex; fixes for search