Implemented single and singleOrDefault

For issue #77.