fix memory boundary bug
Merge branch 'master' of git://github.com/statgen/libStatGen
Merge pull request #4 from zhanxw/master

Add boundary check