Birds that prosper in the city have larger brains than their country cousins. Karen Hopkin reports, with assistance from New York City birds