finished all the testings. added edge bc computation. TODO: fix node bc bug which occasionally gives wrong results.