implemented hierarchy operators: ' ', >, +, ~
fixed support for multi-segment selectors
added tests for parsing multi-segment selector