change to gettimeofday for timing

use function to calculate deltas
better printing

XXX: binary interpollation search doesn't work