Make val private
Replace 'List()' with 'Nil'
Implement GraphPath as a specialized Seq