Identify tokens within a simple matrix