Returns a new vector consisting of filtered elements of the original vector
Vector filterElements(bool Function(double element, int idx) predicate);