Reorganize tests for issues/bugs
Simplify function/closure macro implementations
Fix unused parameter warnings
Add random_walk example
Add k_means example