Closes #4 by correctly raising if the operations array contains duplicate operations. Unit tests passing