Removed dependency on notification center and made array extenstion private to not interfere with other array extenstions outside the file.