change the type of some variables from size_t to uint64_t
Merge pull request #267 from y-tag/develop

change the type of some variables from size_t to uint64_t