AIB 2012-05: Automated Complexity Analysis for Prolog by Term Rewriting