length distribution, change readFile to input, make search return the
pointer to prefix structure