test random heuristic
rename variable, fix export error
rewrote algo