MacCuIlagh, James, mathematician