added cycle slip detection class