implemented generate_jammed_packing script and inlined some functions to improve performance of modified fire