Port BroadPhaseAlgorithm

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>
Port NoBroadPhaseAlgorithm

Signed-off-by: Aleksi Sapon <QcTechs@gmail.com>