First cut at lock tumbler algo.