Updated makeMatrix to combine multiple observations that have same feature vector