Removed NgramPosition. Search logic mostly finished, not tested.