beginnings of bitonic array search and closest pair algorithms (N^2 running time only)