add optimized random heuristic
add test application to load vector data