convert_01_to_connect function

Convert 0/1 data to connection pairs