site:geeksforgeeks.org pattern identification in data - Search