added marked 2pcf code (work in progress)