Description: 
- Change to nonconst getters in LatentTrait}
- Include of missing library in Matrix.
- Implementation of iterator for map in pattern matrix.