basic LINQ/array extensions