rewrite some examples and their tests to make code more clear and optimizable
change the parakeet code generation and evaluation to avoid recompling
in each iteration
add check in distarray update to avoid computing overlap when update the
whole array