Implemented LOGEST function.