Linear Algebraic Representation for Computing with Cochains