add cross-spectrum matrix function