Text this: Optimum cross-correlation functions for detection purposes /