quadratic penalty method example
queue implementation using dynamic array