Added function for inverting matches

Fixed issue #1