Discovering longest-lasting correlation in sequence databases