implemented infix_to_prefix function, doesn't work and there's a bug in infix_to_postfix