I remember reading a story once where Merlin is actually a blacksmith and a con man, and the sword in the stone is an elaborate spring-loaded machine he created to hold the sword in place unless one removes it in exactly the right way (which he teaches to Arthur, of course). Can't remember the name.