Added a coord->index tool to help generate boundary matrices.