circlar median, bootstrap bugfix, renamed cdist into cdiff