added convenience matrix construction functions