def calculate_distance(point1, point2):
    """
    Calculate euclidean distance between two points

    Time Complexity O(1)
    Space Complexity O(1)
    
    Args:
       node1(array): [0] = x coordinates and [1] = y coordinates
       node2(array): [0] = x coordinates and [1] = y coordinates
       
    Returns:
        distance(float): Distance between the two points
    """
    
    x1, y1 = point1[0], point1[1]
    x2, y2 = point2[0], point2[1]
    
    #distance = math.sqrt(((x1-x2)**2) + (y1-y2)**2) 
    distance = abs(x1 - x2) + abs(y1 - y2) # working for our heuristic perfectly, faster than calculating square root above
    
    return distance