Preference matrix filling in correct way