Implementation of two different strategies for calculation of search length.

http://stackoverflow.com/questions/4640985/making-a-class-abstract-without-any-pure-virtual-methods