memory crash fix

bad free memory because neighboursnum not initiate to 0