modifying alock to use power-of-two capacities
cleaned up some stuff
fixed the fucking a lock