Mark Kubinec has taught intro chemistry to tens of thousands of students with his online videos for the University of California, Berkeley. Now he can add at least one computer algorithm to his list ...