Added memory abstraction library for streams