Pricing of barrier options