added get_startpoint in datastructures.py