Added CopyTo and Resize to matrix

Also matrix gets initialized with zero