removed unuseless Math.abs() calls
little speedup
Merge pull request #3 from maroslaw/performance

Performance