FIX: Remove the 2 bounds of cd_fast and replace it with a loop according to the paper