just started writing a very abstract algorithm for correlation and gps.