I would like to demonstrate the special formula for the determinants of 3 by 3 matrices, http://www.purplemath.com/modules/determs2.htm. That is
\documentclass{article}
\begin{document}
$$
\begin{array}{ccc|cc}
a & b & c & a & b\\ d & e & f & d & e\\ g & h & i & g & h
\end{array}.
$$
\end{document}
adding two columns and draw diagonal lines. In the question, Draw a vertical line over the entries of a column in an array, it is answered how to draw vertical lines. The method I believe can be applied to my case. But I am wondering if there is any recent dedicated package that handles this.

