added subset method
subset method now allows logical subscripts