fixed computeAxiliary.. method to have a base case for the recursion