added coperiodogram function - first draft