misc code from experiments for coursera course "Analysis of Algorithms"