Some experiments with optimizing simple algorithms, just for fun