Robert Mankoff, cartoon editor of the New Yorker, explains how humor “works,” what it can explain about human nature, and considers the limits of bad comedic taste.