A cluster expansion theory with multireference functions using the unitary ansatz