Added algorithms to paper. Added more VI math.