matrix change

changed dynamic to Convert.ToDouble in Matrix Library