BufferedBinaryFile derives from BinaryFile

+memory leak fix