Create spin lock module

PROGRAM FOR MIN OF ARRAY USING SPIN LOCK