Solving an Incomplete Markets Model with a Large Cross-Section of Agents