finished smart martix mult