Update sn.sh

added
- param number
- extended misplaced brackets
- ft_memalloc casts