Cleaned up ']' operation code and fixed memory bug for programs with mismatched brackets