Basic data structures and some basic graph algorithms