first version of contraction algorithm
added checkpoints to ignore