Merge pull request #93 from tmielika/master

fixing problem that isinf(-Inf) can be 1 or -1