added diagonal fxn

Added a simple (one-step) method for generating diagonal array entries from array inputs.  Should this be expanded to NMatrix or NVector inputs?  Regardless, this makes some of my code (in the Savitzky-Golay filter) a little cleaner.  Hopefully it is a useful addition besides.