Calculates the price of a basket option (Java)