add initial code for connectivity algorithm