fix an analysis issue with the ^ operator

Fix an analysis issue in the `compute` method. The `^` operator is not defined on `num`, but on `int`:

    There is no such operator '^' in 'num'

Also, tweaked the .gitignore file slightly to ignore the test/packages directory.