First version of SHDP and SNHDP