Mathematician and former Cold War codebreaker established one of the most successful hedge funds on Wall Street