add Matrix program