Optimize by using SSE4

Amends the work done by @herumi in PR #4.