In Silicon Valley, possessing the perfect algorithm can elevate you to royalty. These four friends believe they’ve finally unlocked the secret.