Codes written for exercises of Complex Network course at Aalto University, Autumn 2014