added gitignore
Add function to extract diagonal of complex matrix