Fix the computing of dp and dq
Merge pull request #32 from bouuntyy/master

Fix the computing of dp and dq