added layout for chopstick functions, created struct to be passed with pthread_create method