Matrices and Mathematical Programming: An Introduction for Economists