Added MemoryPool class
Commited forgotten file (from commit 2e5f5d29c45d9963441ef5b9cc1a159f3720dec0)