Removed some bottlenecks from singlet gate and added subsampling option to improve runtime. Closes #7