'Word Problems': Popular and Educational Discourses on Mathematics in the Pre-Civil War United States