Implemented matrix(), working on rep()