Implemented extensions for ArraySegment class