change typename of T to SampleT
optimize HashMap access
make ISampleVector an interface
fix documentation
refactor main