Implement the visualization for basic algorithms on iOS