Simple algorithmic rules for complex human decisions