added some auxiliary function for data in matrices
Merge remote-tracking branch 'origin/master'