Remove unnecessary pattern matching
Add another pattern matching for single element list
Fix take implementation with 0 case