add some methods

https://github.com/node-modules/byte/issues/12
呃, 这样性能也太差了吧...