Fixed bug with bidirectional neighbours.
Deleted unnecesary structures and variables.
Removed comments.