Move buffer classes into buffer namespace.