How to find match pattern like bubble shooter with Cocos2dx?

Iam developing a game similar to concept of bubble shooter… how should i find matched neighbours, without using any Matrix structure.
Any cocos functionality available fir this ?