added sorted graph
added hw5