#Make matrix initialization more flexible