Optimal continuous order quantity (s,S) policies - the 45-degrees algorithm