algos.py
all stuff at once