overall improvements

changed names of Pair type fields
added Edge type
added default for outStream
fixed memory leaks
added search of neighbours for not ordered edge list
now program can generate random labyrinths
added a lot of comments
cleaned up
added randomness and fixed a leak