Bubble model based decompression algorithm optimized for implementation on a low power microcontroller