add memory deallocation for bitmap and related structures
Merge pull request #2 from toastynerd/bitmap_deallocate

add memory deallocation for bitmap and related structures