buffer: improve read/write speed with assert (unstable)

Assert checks can be performed faster in C than in js. So a set of
generic methods have been created on SlowBuffer that will be called if
the user doesn't pass noAssert.