Added a bakery algorithm lock.

Added a lock based on Lamport's bakery algorithm, generalized for any number of threads. Also added a Lock interface and some files for testing.