Implemented length operator. This closes #130