Added generic matrix doc