corrected local_independencies method. Earlier it was showing duplicate variable in event1 and event2 [fixes #158]