Added basic graph, changed sort array size freedom