Merge pull request #4 from CY-Chan/master

Update
Merge pull request #5 from CY-Chan/master

Added global max test
Update estimation and test
Merge pull request #14 from mattybeam/master

Update estimation and test