Alternating implicit direction methods for option pricing