Calculate determinant of $2 \times 2$ matrix (#676)