add coding challenge hierarchy problem and new graph implementation