add algorithm maze and sortlist