compared performance under different distributions
fixed some errors and recovered changes for facilitating test running
changed size_t to int; fixed pitch_windows