Support for optional match in planning

o Splits QueryGraph into MainQG and OptionalQG
o Introduces concept of arguments to QG (from outside scope)