Two algorithms to find a power integral basis