Merge pull request #137 from kamalpreetgrewal/master

invert selection implementation