Buffer manager changed. Clock algorithm implemented

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>