Find k closest points to the origin
DAG - creation and sub graph collection