He wrote a program that allowed people to buy and sell stocks on their home computers and co-founded a company that reaped its benefits.