adds matthew correlation calculation