Hilbert Projection Theorem for Closed Linear Subspaces of $L^2$