Use typed array to boost performance by 50%
Backward compatibility fix.
Merge pull request #7 from ashi009/master

Use typed array to boost performance by 50%