moved algorithms to domain specific directory