added -s -d switches
pulled locn[] inside biogeo()
parallelized, with pthreads!