Add diagonal matrix constructor.