Added named constructors Success.of() and Failure.of().

Added named constructors Success.of() and Failure.of() to reduce the necessity of using the diamond operator with "new". Updated tests and implementation to use named constructors instead of conventional constructors.