patterns of selection practice problems.pdf