Factor out common sphere hit testing code
Missing modules in cabal file