Working step algorithm that takes each item in order of vdensity and tracks which ones were taken