Fixed cardinality calculations for bidirectional patterns
Added handling of optional match to QueryGraphCardinalityModel
Merge pull request #3091 from pontusmelke/selectivity-biddirectional-patterns

[master] Fixed cardinality calculations for bidirectional patterns and optional match