Added examples of protocol and extension

Added protocols ExampleProtocol and absoluteValue, used to create an
extension to Double type that computes its absolute value