buffer: add indexOf/lastIndexOf method

Expanded on @srijs code to add a `Buffer.prototype.lastIndexOf`. I used a strategy of divide/conquer, but since I'm a total c++ idiot, I have no idea whether there is a better way (some reverse memcmp variant?). Also I rebased both srijs and these commits against v0.12 hoping it would make it out sooner :)