Parallel impl of contact algos - dirty but working