Refactor BIP32 -> HDPrivateKey and HDPublicKey

instanceof Buffer I know does not work in the browser because it's an instanceof Uint8Array