optimized buddy module