Task: Implement a Python package providing a zerofy function
Goal:
Create a Python package at /app/chapter1 with a module that exposes a function zerofy(matrix) to transform a binary matrix as described by the tests.
What to implement
Create a package at /app/chapter1/ (include an empty init.py to mark it as a package).
Add a module zerofy.py inside that package.
Implement the function with the following signature and behavior:
If any element in the original matrix is 0, the entire row and entire column of that element become 0 in the output.
The function should not mutate the input; it must return a new matrix.
If the input matrix is empty (i.e., []), return [].
If rows have varying lengths, apply the rule consistently to existing cells (assume tests use rectangular matrices but handle non-uniform rows gracefully).