Added matrix double