Python implementation for popular array sorting algorithms