Buffer manager V1.0

@medo