added discrete cosine transform (and periodic extension), matrix representation of the banded covariance operator and added comments to functions