Pulled graph matching functions out into separate source file. Written basic graph matching (hopefully)