Implement a function compute_null_space that finds an orthonormal basis for the null space (also called the kernel) of a matrix A.
The null space of a matrix A consists of all vectors x such that Ax = 0. Your function should:
- Accept a 2D NumPy array A of shape (m, n) and an optional tolerance parameter
- Return a matrix whose columns form an orthonormal basis for the null space
- If the null space is trivial (contains only the zero vector), return an empty matrix of shape (n, 0)
- Use the tolerance parameter to determine which singular values should be treated as zero
Your implementation should handle matrices of any shape, including square, tall, and wide matrices.