A simple sparse bitmap implementation in java