Added basic code for computing subset of dataset